﻿<Application x:Class="nRoute.Samples.Netflix.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:n="http://nRoute/schemas/2010/xaml"
             StartupUri="MainPage.xaml">

    <Application.Resources>
        <ResourceDictionary>
            
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Assets/Styles.xaml"/>
                <ResourceDictionary Source="Assets/CoreStyles.xaml"/>
                <ResourceDictionary Source="Resources/CommonResources.xaml"/>
            </ResourceDictionary.MergedDictionaries>
            <n:nRouteApplicationService x:Key="nRouteService" AutoInitialize="True">
                <n:XamlSiteMapProvider>
                    <n:SiteMap>

                        <!-- ROOT NODE -->
                        <n:SiteMap.RootNode>
                            <n:NavigationNode>
                                <n:NavigationNode Title="genres" Url="Content/Netflix/Genres/"/>
                                <n:NavigationNode Title="movies" Url="Content/Netflix/Movies/"/>
                                <n:NavigationNode Title="people" Url="Content/Netflix/People/"/>
                                <n:NavigationNode Title="languages" Url="Content/Netflix/Languages/"/>
                                <n:ControllerActionNode Title="about" Url="Content/Windows/About/"/>
                            </n:NavigationNode>
                        </n:SiteMap.RootNode>

                    </n:SiteMap>
                </n:XamlSiteMapProvider>
            </n:nRouteApplicationService>

        </ResourceDictionary>
    </Application.Resources>

</Application>